<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>返回包含 bzip2 错误号和错误字符串的一个 array</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.bzerror" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">bzerror</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">bzerror</span> &mdash; <span class="dc-title">
   返回包含 bzip2 错误号和错误字符串的一个 array
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.bzerror-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>bzerror</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$bz</code></span>
   ) : <span class="type">array</span></div>

  <p class="para rdfs-comment">
   返回文件指针中返回的 bzip2 错误的错误号和错误字符串。
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.bzerror-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">bz</code></dt>

     <dd>

      <p class="para">
       文件指针。它必须是有效的并且指向 <span class="function"><a href="bzopen.html" class="function">bzopen()</a></span> 成功打开的文件。
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.bzerror-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   返回一个关联数组，包含错误码于 <em>errno</em> 条目，
   以及错误信息于 <em>errstr</em> 条目。
  </p>
 </div>

 <div class="refsect1 examples" id="refsect1-function.bzerror-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-698">
    <p><strong>Example #1 <span class="function"><strong>bzerror()</strong></span> 范例</strong></p>
    <div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$error&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">bzerror</span><span style="color: #007700">(</span><span style="color: #0000BB">$bz</span><span style="color: #007700">);<br /><br />echo&nbsp;</span><span style="color: #0000BB">$error</span><span style="color: #007700">[</span><span style="color: #DD0000">"errno"</span><span style="color: #007700">];<br />echo&nbsp;</span><span style="color: #0000BB">$error</span><span style="color: #007700">[</span><span style="color: #DD0000">"errstr"</span><span style="color: #007700">];<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
    </div>

   </div>
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.bzerror-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="bzerrno.html" class="function" rel="rdfs-seeAlso">bzerrno()</a> - 返回一个 bzip2 错误码</span></li>
    <li class="member"><span class="function"><a href="bzerrstr.html" class="function" rel="rdfs-seeAlso">bzerrstr()</a> - 返回一个 bzip2 的错误字符串</span></li>
   </ul>
  </p>
 </div>

</div></div></div></body></html>